[Chapter 2] 2.13 Positional Operators in the RHS
Author: Bryan Costales & Eric Allman
Date: 1999-02-04T00:04:26Z

#

| Chapter 2 The sendmail.cf File |

## 2.13 Positional Operators in the RHS

The RHS rewrites by substitution. Wildcard operators in the LHS select the portions of the workspace to be passed to the RHS. The first wildcard is assigned to $1, the second to $2, and so on. Consider:

>     R$+@$*    $2!$1

>      $1 $2

Here, an Internet address is rewritten in UUCP form. Note that there are only nine such positional operators, and that $0 is illegal.

2.12 Wildcard Operators in the LHS |  | 2.14 Other Operators in the RHS